Extubation from endotracheal mechanical ventilation to CPAP